package com.example.lianjuan.Utils;

import android.text.TextUtils;

import androidx.annotation.NonNull;

public class StringSizeUtils {
    public static String SizeSub(@NonNull String str) {
        int start = str.indexOf("￥");
        String startString = str.substring(start + 1);
        int end = startString.indexOf("￥");
        String endString = startString.substring(0, end + 1);
        if (start > 0 && !TextUtils.isEmpty(startString) && end > 0 && !TextUtils.isEmpty(endString)) {
            return "￥" + endString;
        }
        return null;
    }
}
